package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

import java.util.List;

public interface CommentService {

    // 保存comment
    int save(Comment comment);

    // 删除comment
    int delete(Long userId, ObjectId publishId, Integer commentType);

    //分页查询评论列表
    PageBeanVo findByPage(ObjectId publishId, Integer pageNum, Integer pageSize);

    //查看点赞,喜欢,评论列表数据
    PageBeanVo findByPage(Long publishUserId, Integer commentType, Integer pageNum, Integer pageSize);

    //视频点赞
    void saveVideoLike(Comment comment);

    //取消视频点赞
    void disVideoLike(ObjectId id, Long userId);

    //发布视频评论
    void saveVideoComment(Comment newComment);

    //评论列表翻页
    PageBeanVo selectPage(Integer page, Integer pagesize, String messageID);

    //查看评论
    List<Comment> findCommentByMovementId(Integer page, Integer pagesize, String movementId);

    //是否点赞
    Integer findMyLike(Long nowId, ObjectId id);}